package com.example.myapplication.api;

import com.example.myapplication.model.User;

import java.util.List;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;

public interface ApiService {
    @GET("api/users")
    Call<List<User>> getUsers();

    @POST("api/users")
    Call<User> createUsers(@Body User user);
}
